<?php
/**
 * Created by PhpStorm.
 * User: liyu
 * Date: 2018/4/25
 * Time: 下午6:36
 */

namespace app\api\validate;


use app\common\validate\BaseValidate;

class OrgValidate extends BaseValidate
{
    protected $rule = [
        'id' => 'require',
        'name' => 'require'
    ];

    protected $scene = [
        'add' => ['name'],
        'update' => ['id'],
        'getOne' => ['id']
    ];
}